<!DOCTYPE html>
<html>
	<head>
        <title>发布问题-问答中心</title>
        <meta name="renderer" content="webkit" /> 
		<meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> 
		<meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=0,minimal-ui" /> 
        <link href="{eyou:global name='web_cmspath' /}/favicon.ico" rel="shortcut icon" type="image/x-icon" /> 
        {eyou:static file="ask/skin/css/ey-ask.css"/}
        {eyou:static file="ask/skin/css/font-awesome.min.css"/}
        {eyou:static file="ask/skin/css/iconfont.css"/}
        {eyou:static file="ask/skin/js/jquery.min.js"/}
        {eyou:static file="ask/skin/js/layer-v3.1.0/layer.js"/}
        {eyou:static file="ask/skin/js/ask.js" /}

	</head>

	<body>
        <!-- 头部框 -->
        {eyou:include file="ask/ask_header.htm" /}
        <!-- 头部 END -->
        <div class="ask-content mt20 ask-details">
            <!--问答列表-->
            <div class="ask-left">
                <div class="bg-f bor">
                    <form id="SubmitAskFormData" method="post">
                        <div class="ask-from">
                            <div class="site-nav">
                                <span onclick="Linkjump(this);" data-url="{$eyou.field.NewDateUrl}">
                                    <a href="javascript:void(0);">问答首页</a>
                                </span>
                                <span>/</span>
                                <span onclick="Linkjump(this);" data-url="{$eyou.field.AddAskUrl}">
                                    <a href="javascript:void(0);">提问问题</a>
                                </span>
                            </div>

                            <div class="ask-from-item">
                                <span class="title">问题标题</span> <!--<span class="title-info">最多80字</span>-->
                            </div>
                            <div class="ask-from-item">
                                <input name="title" id="title" class="input-inner" type="text" autocomplete="off" maxlength="80" placeholder="简要准确描述你的问题">
                            </div>

                            <div class="ask-from-item">
                                <span class="title">问题分类</span> <!--<span class="title-info">放对位置很重要</span>-->
                            </div>
                            <div class="ask-from-item">{$eyou.field.HtmlCode}</div>

                            <div class="ask-from-item">
                                <span class="title">悬赏</span>
                                <!--<span class="title-info">给您满意的答案悬赏</span>-->
                            </div>
                            <div class="ask-from-item">
                                <input class="input-inner w250" type="number" name="money" value="0" autocomplete="off" oninput="VerifyBalance(this, '{$eyou.field.users_money}');" onkeyup='this.value=this.value.replace(/[^\d.]/g,"");'> <span>元</span>
                                <span class="balance">当前账户余额 <em>{$eyou.field.users_money}</em> 元</span>
                                <span class="pay"> <a href="javascript:void(0);" onclick="Linkjump(this);" data-url="{:url('user/Pay/pay_account_recharge')}">充值</a> </span>
                            </div>
                            <div class="ask-from-item">
                                <span class="title">问题描述</span><!--<span class="title-info">问题说明越详细，回答也会越准确！</span>-->
                            </div>
                            <div class="ask-from-item">
                                <!-- 提问所需JS -->
                                <script type="text/javascript">
                                    window.UEDITOR_HOME_URL = "{eyou:global name='web_cmspath' /}/public/plugins/Ueditor/";
                                </script> 
                                {eyou:static file="/public/plugins/Ueditor/ueditor.config.js"/}
                                {eyou:static file="/public/plugins/Ueditor/ueditor.all.min.js"/}
                                {eyou:static file="/public/plugins/Ueditor/lang/zh-cn/zh-cn.js"/}
                                <!-- 提问内容框 -->
                                <textarea class="ckeditor" id="content" name="content"></textarea>
                                <div class="mt10"> <span class="answer-btn" data-url="{$eyou.field.SubmitAddAsk}" onclick="SubmitAskData(this);">发布</span> </div>
                                <!-- 提问加载富文本JS -->
                                <script type="text/javascript">
                                    UE.getEditor('content', {
                                        serverUrl :"{:url('user/Uploadify/index',array('savepath'=>'askpic'))}",
                                        zIndex: 999,
                                        initialFrameWidth: "100%",
                                        initialFrameHeight: 300,
                                        focus: false,
                                        maximumWords: 99999,
                                        removeFormatAttributes: 'class,style,lang,width,height,align,hspace,valign',
                                        pasteplain:false,
                                        autoHeightEnabled: false,
                                        toolbars: [["forecolor", "removeformat", "|", "simpleupload", "unlink"]],
                                        xssFilterRules: true,
                                        inputXssFilter: true,
                                        outputXssFilter: true
                                    });
                                    // 必须在提交前渲染编辑器
                                    function content() {
                                        // 判断编辑模式状态:0表示【源代码】HTML视图；1是【设计】视图,即可见即所得；-1表示不可用
                                        if (UE.getEditor("content").queryCommandState('source') != 0) {
                                            UE.getEditor("content").execCommand('source');
                                        }
                                    }
                                </script>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <!--问答列表 end-->

            <!-- 中部右边项 -->
            {eyou:include file="ask/ask_right.htm" /}
            <!-- 中部右边项 END -->
        </div>
        <!-- 底部 -->
        {eyou:include file="ask/ask_footer.htm" /}
        <!-- 底部 END -->
	</body>
</html>